package com.ruoyi.system.service.construction.impl;

import java.util.ArrayList;
import java.util.List;

import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.construction.ConstructionInfo;
import com.ruoyi.system.domain.construction.ConstructionVideo;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.SupplierInfo;
import com.ruoyi.system.mapper.SysUserMapper;
import com.ruoyi.system.mapper.construction.ConstructionInfoMapper;
import com.ruoyi.system.mapper.construction.ConstructionVideoMapper;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.SupplierInfoMapper;
import com.ruoyi.system.service.construction.ConstructionVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 施工队视频信息Service业务层处理
 * 
 * @author 张少丛
 * @date 2020-11-07
 */
@Service
public class ConstructionVideoServiceImpl implements ConstructionVideoService
{
    @Autowired
    private ConstructionVideoMapper constructionVideoMapper;

    @Autowired
    private ConstructionInfoMapper constructionInfoMapper;

    @Autowired
    private SupplierInfoMapper supplierInfoMapper;

    @Autowired
    private SysUserMapper userMapper;

    /**
     * 查询施工队视频信息
     * 
     * @param constructionVideoId 施工队视频信息ID
     * @return 施工队视频信息
     */
    @Override
    public ConstructionVideo selectConstructionVideoById(Integer constructionVideoId)
    {
        return constructionVideoMapper.selectConstructionVideoById(constructionVideoId);
    }

    /**
     * 查询施工队视频信息列表
     * 
     * @param constructionVideo 施工队视频信息
     * @return 施工队视频信息
     */
    @Override
    public List<ConstructionVideo> selectConstructionVideoList(ConstructionVideo constructionVideo)
    {
        return constructionVideoMapper.selectConstructionVideoList(constructionVideo);
    }

    /**
     * 新增施工队视频信息
     * 
     * @param constructionVideo 施工队视频信息
     * @return 结果
     */
    @Override
    public int insertConstructionVideo(ConstructionVideo constructionVideo)
    {
        return constructionVideoMapper.insertConstructionVideo(constructionVideo);
    }

    /**
     * 修改施工队视频信息
     * 
     * @param constructionVideo 施工队视频信息
     * @return 结果
     */
    @Override
    public int updateConstructionVideo(ConstructionVideo constructionVideo)
    {
        return constructionVideoMapper.updateConstructionVideo(constructionVideo);
    }

    /**
     * 批量删除施工队视频信息
     * 
     * @param constructionVideoIds 需要删除的施工队视频信息ID
     * @return 结果
     */
    @Override
    public int deleteConstructionVideoByIds(Integer[] constructionVideoIds)
    {
        return constructionVideoMapper.deleteConstructionVideoByIds(constructionVideoIds);
    }

    /**
     * 删除施工队视频信息信息
     * 
     * @param constructionVideoId 施工队视频信息ID
     * @return 结果
     */
    @Override
    public int deleteConstructionVideoById(Integer constructionVideoId)
    {
        return constructionVideoMapper.deleteConstructionVideoById(constructionVideoId);
    }
}
